import fetch from '@/config/fetch';

/**
 * 记录营销数据
 * Jason
 * @param {来源} source 
 * @param {目标数据ID} dataId 
 * @param {记录类型：1.点击到店 2.点击咨询} type 
 * @param {分享者ID} shareUserId 
 * @param {分享类型} shareType 
 */
export function recordMarketingData(source, dataId, type, shareUserId, shareType) {
    return fetch.post('/marketing/recordMarketingData', {
        source, dataId, type, shareUserId, shareType
    })
}

/**
 * 获取门店列表
 */
export function getStoreList() {
    return fetch.get('/marketing/getStoreList', {
        params: {
        }
    })
}

/**
 * 获取咨询人员列表
 */
export function getConsultUser(spreadId, uid) {
    return fetch.get('/marketing/getConsultUser', {
        params: {
            spreadId, uid
        }
    })
}